<script setup>
import {
  onBeforeMount,
  onMounted,
  onBeforeUpdate,
  onUpdated,
  onBeforeUnmount,
  onUnmounted,
} from 'vue';

onBeforeMount(() => {
  console.log('onBeforeMount2');
});
onMounted(() => {
  console.log('onMounted2');
});
onBeforeUpdate(() => {
  console.log('onBeforeUpdate2');
});
onUpdated(() => {
  console.log('onUpdated2');
});
onBeforeUnmount(() => {
  console.log('onBeforeUnmount2');
});
onUnmounted(() => {
  console.log('onUnmounted2');
});
</script>

<template>
  <div>我是Test自定义组件</div>
</template>
